package com.fxb.concurrency.demo1;

/**
 * @author fangjiaxiaobai
 * @date 2021-03-01 10:24
 * @since 1.0.0
 */
public class Thread2 extends Thread {

    private DemoResource demoResource;

    public Thread2(DemoResource demoResource) {
        this.demoResource = demoResource;
    }

    @Override
    public void run() {
        demoResource.stopRun();
    }
}
